// component/userbox.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    list:{
      type:Array
    },
    imageRoot: {
      type: String
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
  },

  /**
   * 组件的方法列表
   */
  methods: {
    choose(e){
      var that = this;
      console.log(e)
      that.triggerEvent('choose', e);
    },
    navTo(e) {//跳转
      console.log(e.currentTarget.dataset.url)
      var url = e.currentTarget.dataset.url;
      wx.navigateTo({
        url: url
      })
    },
    setEdit(list) {
      var that =this;
      console.log(list,'靓仔啦啦啦')
      var properties = that.properties;
      // properties.list = list;
      console.log(that.properties.list)
      // that.setData({
      //   properties: properties
      // })
      },
      delete(e){
        const me = this;
        me.triggerEvent('delete',e.currentTarget.dataset.id);
      }
  }
})
